#include <iostream>

class RefBase {
private:
    int count;
public:
    RefBase() : count(0){};
    void incStrong() {count++;};
    void decStrong() {count--;};
    int getStrongCount() {return count;};
};

class Person : public RefBase {
private:
    int count;
    char *name;
    int age;

public:
//    void incStrong();
//    void decStrong();
//    int getStrongCount();

    Person();

    ~Person();

    Person(char *name);

    Person(char *name, int age);

    void printInfo(void);
};
